package src;

public class SearchStringEmp {
    public static void main(String[] args) {
        String strOrig = "Goole Runoob args";
        int intIndex = strOrig.indexOf("Runoob");
        if (intIndex == -1){
            System.out.println("没有找到字符串 Runoob");
        }else {
            System.out.println("字符串 Runoob 位置是：" + intIndex);
        }
    }
}
